//
//  ZGroup.m
//  Zlottery
//
//  Created by HuaYingJiTuan on 16/1/11.
//  Copyright © 2016年 张庆庆. All rights reserved.
//

#import "ZGroup.h"

@implementation ZGroup
+ (instancetype)groupWithItems:(NSArray *)items{
    ZGroup *group = [[self alloc] init];
    group.items = items;
    return group;
}

+ (instancetype)groupWithItems:(NSArray *)items header:(NSString *)header{
    ZGroup *group = [self groupWithItems:items header:header footer:nil];
    return group;
}
+ (instancetype)groupWithItems:(NSArray *)items footer:(NSString *)footer{
    ZGroup *group = [self groupWithItems:items header:nil footer:footer];
    return group;
}
+ (instancetype)groupWithItems:(NSArray *)items header:(NSString *)header footer:(NSString *)footer{
    ZGroup *group = [self groupWithItems:items];
    group.header = header;
    group.footer = footer;
    return group;
}
@end
